
public class ServerStatus {
	private int status;
	
	private final int noCall = 0;
	private final int ready = 1;
	private final int established = 2;
	
	public ServerStatus(){
		this.status = 0;
	}
	
	public ServerStatus(int status){
		this.status = status;
	}
	
	public int getStatus(){
		return status;
	}
	
	public int updatestatus(){
		if(this.status == noCall){
			return ready;
		}else if(this.status == ready){
			return established;
		}else {
			return noCall;
		}
	}
	
}
